package com.parking.status.sync.repository;

import com.parking.status.sync.entity.ParkingStatus;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by Jianjun.Hu on 2015/9/14.
 */
public interface ParkingStatusRepository extends JpaRepository<ParkingStatus, Long> {
    @Query("select s from #{#entityName} s where s.status=0")
    List<ParkingStatus> findStatusEqualZero();
}
